package com.ruoyi.vehicle.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.vehicle.mapper.TbTailwindsMapper;
import com.ruoyi.vehicle.domain.TbTailwinds;
import com.ruoyi.vehicle.service.ITbTailwindsService;

/**
 * 顺风车半径设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class TbTailwindsServiceImpl implements ITbTailwindsService 
{
    @Autowired
    private TbTailwindsMapper tbTailwindsMapper;

    /**
     * 查询顺风车半径设置
     * 
     * @param tailwindsId 顺风车半径设置主键
     * @return 顺风车半径设置
     */
    @Override
    public TbTailwinds selectTbTailwindsByTailwindsId(Long tailwindsId)
    {
        return tbTailwindsMapper.selectTbTailwindsByTailwindsId(tailwindsId);
    }

    /**
     * 查询顺风车半径设置列表
     * 
     * @param tbTailwinds 顺风车半径设置
     * @return 顺风车半径设置
     */
    @Override
    public List<TbTailwinds> selectTbTailwindsList(TbTailwinds tbTailwinds)
    {
        return tbTailwindsMapper.selectTbTailwindsList(tbTailwinds);
    }

    /**
     * 新增顺风车半径设置
     * 
     * @param tbTailwinds 顺风车半径设置
     * @return 结果
     */
    @Override
    public int insertTbTailwinds(TbTailwinds tbTailwinds)
    {
        tbTailwinds.setCreateTime(DateUtils.getNowDate());
        return tbTailwindsMapper.insertTbTailwinds(tbTailwinds);
    }

    /**
     * 修改顺风车半径设置
     * 
     * @param tbTailwinds 顺风车半径设置
     * @return 结果
     */
    @Override
    public int updateTbTailwinds(TbTailwinds tbTailwinds)
    {
        return tbTailwindsMapper.updateTbTailwinds(tbTailwinds);
    }

    /**
     * 批量删除顺风车半径设置
     * 
     * @param tailwindsIds 需要删除的顺风车半径设置主键
     * @return 结果
     */
    @Override
    public int deleteTbTailwindsByTailwindsIds(Long[] tailwindsIds)
    {
        return tbTailwindsMapper.deleteTbTailwindsByTailwindsIds(tailwindsIds);
    }

    /**
     * 删除顺风车半径设置信息
     * 
     * @param tailwindsId 顺风车半径设置主键
     * @return 结果
     */
    @Override
    public int deleteTbTailwindsByTailwindsId(Long tailwindsId)
    {
        return tbTailwindsMapper.deleteTbTailwindsByTailwindsId(tailwindsId);
    }
}
